export type PropsType = {
  handle: "add" | "update"
  parentId: number | null
  flag: boolean
  isDir: boolean
}

export type EmitFlag = (event: "update:flag", flag: boolean) => void
export type EmitUploadFile = (
  event: "updateFile",
  parentId: number | null,
  handle: "add" | "update"
) => Promise<void>

export type FormDataType = {
  fileId: number
  name: string
  editable: boolean
}
